<%@ page language="java" pageEncoding="utf-8"%>

<!--/*** sumo CSS样式 修改**/-->
<style>
    .SumoSelect {width: 220px;height: 27px;color: rgb(65, 137, 203);font-size: 13px;}
    .SumoSelect label {font-size: 13px;}
    .SumoSelect span {font-size: 13px;}
    .SumoSelect > p {height: 27px;}
    .SumoSelect .select-all {height: 36px;}
</style>


<!--/*** 控件HTML标签 **/-->
<div class="col-md-12" style="margin-top:10px;padding: 0 0 0 5px;">
    <div class="col-md-3" style="padding: 0;">
        <label style="color: rgb(65, 137, 203);font-size: 12px;padding: 0px;margin: 0px;">校准板:</label>
    </div>
    <div class="col-md-9">
        <select id="lotNumberSumo"></select>
    </div>
</div>



<script>
//    $(document).ready(function () {
        $("#lotNumberSumo").SumoSelect({
            search: true,
            searchText: 'Enter here.',
            captionFormat: '已选择：{0}(项)',
            selectAll:true,
            captionFormatAllSelected: "全选",
            okCancelInMulti: true,
            locale :  ['确定', '取消', '全选'],
            isClickAwayOk: true,
        });


        function iniLotNumberInfoFnc(start_time, end_time){
            if (start_time == undefined) start_time = $.trim($("#startTime").val());
            if (end_time == undefined) end_time = $.trim($("#endTime").val());
            var inTrxObj = {
                start_time : start_time,
                end_time   : end_time,
                tool_id    : $.trim($("#toolIdSumo").val())
            };
            comAddSelectValueFnc("#lotNumberSumo","LOT", inTrxObj,false,false);
            $('#lotNumberSumo')[0].sumo.reload();
        };
        iniLotNumberInfoFnc();
        $("#fabIdSumo").change(function (){iniLotNumberInfoFnc();});
        $("#bayIdSumo").change(function (){iniLotNumberInfoFnc();});
        $("#opeIdSumo").change(function (){iniLotNumberInfoFnc();});
        $("#toolgIdSumo").change(function (){iniLotNumberInfoFnc();});
        $("#toolTypeRadio input[type=radio][name=toolType]").change(function (){iniLotNumberInfoFnc();});
        $("#toolIdSumo").change(function (){iniLotNumberInfoFnc();});
//    });
</script>